package com.example.aerospacemanagementsystem.service.logisticsService.impl.impl;


import com.example.aerospacemanagementsystem.entity.logistics.Safety;
import com.example.aerospacemanagementsystem.entity.logistics.Usage;
import com.example.aerospacemanagementsystem.mapper.logisticsMapper.SafetyMapper;
import com.example.aerospacemanagementsystem.mapper.logisticsMapper.UsageMapper;
import com.example.aerospacemanagementsystem.service.logisticsService.impl.UsageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 李铭
* @description 针对表【usage】的数据库操作Service实现
* @createDate 2023-11-03 10:30:03
*/
@Service
public class UsageServiceImpl  implements UsageService{
    @Autowired
    private UsageMapper usageMapper;

    @Override
    public int add(Usage usage) {
        return usageMapper.insert(usage);
    }

    @Override
    public int delete(Usage usage) {
        return usageMapper.delete(usage);
    }

    @Override
    public int update(Usage usage) {
        return usageMapper.update(usage);
    }

    @Override
    public List<Usage> getAllUsage(Usage usage) {
        return usageMapper.getAllUsage(usage);
    }

}




